* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Arimo", sans-serif;
}

body {
    background: linear-gradient(rgba(6, 4, 14, 0.75), rgba(6, 4, 14, 0.85)), url('../img/tlo.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

#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: 16px;
    width: 100%;
}

.input-group input {
    width: 100%;
    height: 52px;
    background: rgba(22, 17, 41, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #fff;
    padding: 0 45px 0 48px; 
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    
}

.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; 
}

.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;
}

#togglePassword {
    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;
}

#togglePassword:hover {
    color: #a855f7;
}

.form-options {
    display: flex;
    justify-content: space-between;
    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;
}

.checkbox-container input {
    margin-right: 8px;
    accent-color: #a855f7;
    width: 16px;
    height: 16px;
}

.forgot-pass {
    color: #a855f7;
    text-decoration: none;
    transition: opacity 0.2s;
}

.forgot-pass:hover {
    text-decoration: underline;
}

.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);
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.separator::before, .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.separator span {
    padding: 0 15px;
}

.btn-google {
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.08);
}

.google-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
}

.register-text {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 30px;
}

.register-text a {
    color: #a855f7;
    text-decoration: none;
    font-weight: 600;
}

.register-text a:hover {
    text-decoration: underline;
}

.logo-container {
    margin-bottom: 20px;
}

.main-logo {
    max-height: 60px;
    object-fit: contain;
}