* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Arimo", sans-serif;
}

body {
    background: linear-gradient(rgba(6, 4, 14, 0.85), rgba(6, 4, 14, 0.95)), url('./img/tlo.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-y: auto; 
    padding: 20px 0;
}

#formularz {
    padding: 40px 30px;
    border-radius: 32px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: rgba(15, 11, 28, 0.6);
    color: #fff;
    border: 1px solid rgba(147, 51, 234, 0.25);
    box-shadow: 0 0 50px rgba(147, 51, 234, 0.15), 
                inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.formwrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.formwrap h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.formwrap .subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 30px;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 20px; 
    width: 100%;
}

.input-group input {
    width: 100%;
    height: 56px;
    background: rgba(22, 17, 41, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #fff;
    padding: 18px 45px 0 48px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus, .input-group input:hover {
    border-color: rgba(147, 51, 234, 0.6);
    background: rgba(22, 17, 41, 0.9);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.2);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 18px;
    pointer-events: none;
}

.input-group .floating-label {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 15px;
    pointer-events: none;
    transition: all 0.2s ease-out;
}

.input-group input:focus ~ .floating-label,
.input-group input:not(:placeholder-shown) ~ .floating-label {
    top: 14px;
    font-size: 11px;
    color: #a855f7;
}

.toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #a855f7;
}

.form-options {
    display: flex;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 24px;
    font-size: 13px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #94a3b8;
    user-select: none;
    line-height: 1.4;
}

.checkbox-container input {
    margin-right: 10px;
    accent-color: #a855f7;
    width: 16px;
    height: 16px;
    flex-shrink: 0; 
}

.btn-submit {
    width: 100%;
    height: 54px;
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.6);
}

.login-text {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 30px;
}

.login-text a {
    color: #a855f7;
    text-decoration: none;
    font-weight: 600;
}

.login-text a:hover {
    text-decoration: underline;
}

.logo-container {
    margin-bottom: 20px;
}

.main-logo {
    max-height: 60px;
    object-fit: contain;
}