/* Main Container */
.saf-auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-size: cover;
    background-position: center;
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Auth Card */
.saf-auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 75%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

@media only screen and (max-width: 600px) {
.saf-auth-card {
    width: 100%;
  }
}

.saf-auth-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 2;
}

/* Header */
.saf-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.saf-auth-header h3 {
    color: #2d3748;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.saf-auth-header p {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

/* Form Groups */
.saf-form-group {
    position: relative;
    margin-bottom: 25px;
}

.saf-form-group input {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    outline: none;
    background: transparent;
    transition: all 0.3s ease;
}

.saf-form-group label {
    position: absolute;
    top: 12px;
    left: 0;
    color: black;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.saf-form-group input:focus ~ label,
.saf-form-group input:valid ~ label {
    top: -15px;
    font-size: 12px;
}

.saf-focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.4s ease;
}

.saf-form-group input:focus ~ .saf-focus-border {
    width: 100%;
}

/* Remember Me & Forgot Password */
.saf-remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.saf-remember-me {
    display: flex;
    align-items: center;
    color: #4a5568;
}

.saf-remember-me input {
    margin-right: 8px;
}

.saf-forgot-password {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
}

.saf-forgot-password:hover {
    color: #2d3748;
}

/* Submit Button */
.saf-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.saf-submit-btn:hover {
    box-shadow: 0 5px 15px rgba(101, 126, 234, 0.4);
    transform: translateY(-2px);
}

/* Footer Links */
.saf-auth-footer {
    text-align: center;
    font-size: 14px;
    color: #718096;
    margin-top: 20px;
}

.saf-auth-footer a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.saf-auth-footer a:hover {
    color: #2d3748;
}

/* Error Messages */
.saf-auth-error {
    background: #fff5f5;
    color: #e53e3e;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #e53e3e;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .saf-auth-card {
        padding: 30px 20px;
    }
    
    .saf-auth-header h3 {
        font-size: 20px;
    }
}