* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 32px;
}

#form {
    width: 100%;
}

h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

.input-box {
    position: relative;
    margin-bottom: 24px;
}

.input-box input {
    width: 100%;
    height: 56px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    outline: none;
    font-size: 16px;
    color: #2d3748;
    padding: 16px 56px 16px 20px;
    transition: all 0.3s ease;
}

.input-box input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.input-box input:focus + label,
.input-box input:valid + label {
    top: -12px;
    left: 16px;
    color: #667eea;
    font-size: 12px;
    background: white;
    padding: 0 8px;
    font-weight: 600;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #718096;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
}

.input-box .icon-email,
.input-box .icon-password {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    transition: color 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-box:focus-within .icon-email,
.input-box:focus-within .icon-password {
    color: #667eea;
}

.input-box .icon-email svg,
.input-box .icon-password svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0;
    font-size: 14px;
}

.remember-forgot label {
    display: flex;
    align-items: center;
    color: #718096;
    cursor: pointer;
}

.remember-forgot input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: #667eea;
    cursor: pointer;
}

.remember-forgot a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.remember-forgot a:hover {
    color: #764ba2;
    text-decoration: underline;
}

#submit {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 24px 0;
    position: relative;
}

#submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.3);
}

#submit:active {
    transform: translateY(0);
}

.register-link {
    text-align: center;
    margin-top: 24px;
}

.register-link h5 {
    font-size: 14px;
    color: #718096;
    font-weight: 400;
}

.register-link a {
    color: #667eea;
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.3s ease;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
}

.register-link a:hover {
    color: #764ba2;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
}

.register-link a:visited,
.register-link a:active,
.register-link a:focus {
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
}

#form p {
    display: none !important;
}
#form p.error {
    display: block !important;
    color: #e53e3e;
    font-size: 14px;
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    background: rgba(254, 226, 226, 0.8);
    border: 1px solid #fed7d7;
    border-radius: 12px;
}


.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.alert.show {
    transform: translateX(0);
    opacity: 1;
    display: block;
}

.alert-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.close-alert {
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.close-alert:hover {
    background: rgba(255, 255, 255, 0.2);
}

.close-alert svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.alert-middle {
    padding: 20px;
    font-size: 14px;
    color: #2d3748;
    line-height: 1.5;
}

.alert-progress {
    height: 3px;
    background: #f1f5f9;
}

.alert-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 5s linear;
}