/* KindLink Login Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    margin-bottom: 30px;
}

.logo img {
    height: 40px;
}

.logo-text {
    color: white;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 1px;
}

.logo-text strong {
    font-weight: 600;
}

.login-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 40px;
    width: 100%;
}

.login-card h2 {
    text-align: center;
    color: #333;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 30px;
}

.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-success {
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 16px 16px 16px 16px;
    border: 1px solid #d2d5d7;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #005bea;
    box-shadow: 0 0 0 3px rgba(0, 91, 234, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group .input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: #1768a6;
    color: white;
}

.btn-primary:hover {
    background-color: #125a8f;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.divider span {
    padding: 0 16px;
    color: #9ca3af;
    font-size: 14px;
}

.btn-google {
    background-color: white;
    color: #333;
    border: 1px solid #d2d5d7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-google:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.btn-google svg {
    width: 20px;
    height: 20px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.login-footer p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.login-footer a {
    color: #005bea;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 24px;
    }

    .login-card h2 {
        font-size: 24px;
    }
}
