/* 
   Modern Auth Styles for Trust-Certs 
   Designed to match the landing page color scheme.
*/

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-bg: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    --card-bg: #ffffff;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -10px rgba(99, 102, 241, 0.25);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--gradient-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 10px 0;
}

/* Animated background shapes */
body::before,
body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

body::before {
    width: 400px;
    height: 400px;
    background: #ec4899;
    top: -100px;
    right: -100px;
}

body::after {
    width: 300px;
    height: 300px;
    background: #6366f1;
    bottom: -50px;
    left: -50px;
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, -20px) rotate(10deg);
    }
}

/* Wrapper to center content */
.auth-wrapper {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Card Design */
.auth-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg), 0 0 80px rgba(99, 102, 241, 0.1);
    overflow: hidden;
    position: relative;
    animation: slideUp 0.6s ease-out;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Section */
.auth-header {
    text-align: center;
    padding: 25px 25px 15px;
    background: linear-gradient(to bottom, #ffffff, #fafbfc);
}

.auth-logo {
    height: 60px;
    width: auto;
    margin-bottom: 12px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}

.auth-title {
    color: #0f172a;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Body Section */
.auth-body {
    padding: 20px 30px 25px;
}

/* Form Elements */
.form-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    background: #f9fafb;
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: #ffffff;
}

.input-group-text {
    background-color: transparent;
    border: none;
    color: #9ca3af;
    padding-left: 12px;
    padding-right: 8px;
}

.input-group:focus-within .input-group-text {
    color: var(--primary-color);
}

.form-control {
    border: none;
    padding: 10px 12px;
    color: #1f2937;
    font-size: 0.9rem;
    background: transparent;
}

.form-control:focus {
    box-shadow: none;
    background-color: transparent;
}

.form-control::placeholder {
    color: #c7cbd0;
}

/* Button */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 10px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Link styling */
.auth-body a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-body a:hover {
    color: var(--primary-dark);
}

/* Alerts */
.custom-alert {
    border-radius: 10px;
    font-size: 0.9rem;
    border: none;
    background-color: #fef2f2;
    color: #991b1b;
    padding: 12px 16px;
}

.custom-alert ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

/* Footer */
.auth-footer {
    padding: 12px;
    text-align: center;
    background-color: #f9fafb;
    border-top: 1px solid #f3f4f6;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

.auth-footer a:hover {
    color: var(--primary-dark);
}

/* Google Sign-in Button */
.btn-google {
    background: #ffffff;
    border: 2px solid var(--border-color);
    padding: 12px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary-color);
}

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

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Remember me checkbox */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
}