/* Styles of resources/views/auth/register.blade.php (moved out of the template so browsers cache them). */
/* ========================= Modern Authentication Design ========================= */
.auth-container {
    min-height: 100vh;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.auth-card {
    background: var(--color-surface);
    border-radius: 8px;
    border-top: 4px solid var(--color-fill-strong);
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3d3934 0%, #3d3934 50%, #3d3934 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.auth-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.2rem;
    background: linear-gradient(135deg, #3d3934, #3d3934);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-on-dark);
    font-size: 1.8rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.form-label {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: block;
}

.form-control {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    height: auto;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-fill-strong);
    background: var(--color-surface);
    box-shadow: 0 0 0 4px rgba(43, 39, 36, 0.1);
}

/* Focus styling (consistent with login) */
.input-group .form-control:focus {
    box-shadow: none; /* shadow applied to wrapper when grouped */
}

.form-control::placeholder {
    color: #999;
    opacity: 1;
}

.input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group:focus-within {
    box-shadow: 0 0 0 4px rgba(43, 39, 36, 0.1);
    border-radius: 12px;
}

.input-group-text {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-radius: 12px 0 0 12px;
    padding: 1rem 1.2rem;
    color: var(--color-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group .form-control {
    border-left: 1px solid var(--color-border);
    border-radius: 0 12px 12px 0;
    padding-left: 1rem;
    flex: 1;
}

.input-group:focus-within .input-group-text {
    border-color: var(--color-fill-strong);
    border-right-color: var(--color-fill-strong);
    background: var(--color-surface);
}

.input-group:focus-within .form-control {
    border-color: var(--color-fill-strong);
    border-left-color: var(--color-fill-strong);
    box-shadow: none;
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 10;
}

.toggle-password:hover {
    color: var(--color-text);
    background: rgba(43, 39, 36, 0.05);
}

.btn-auth {
    background: linear-gradient(135deg, #3d3934, #3d3934);
    color: var(--color-on-dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(43, 39, 36, 0.3);
    background: linear-gradient(135deg, #3d3934, #3d3934);
}

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

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.form-check-input:checked {
    background-color: var(--color-fill-strong);
    border-color: var(--color-fill-strong);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin: 0;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.auth-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: var(--color-text);
    text-decoration: none;
}

.invalid-feedback {
    color: var(--color-danger);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.is-invalid {
    border-color: var(--color-danger) !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1) !important;
}

/* Row Layout for Form Fields */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem 0;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
        border-radius: 16px;
    }

    .auth-title {
        font-size: 1.75rem;
    }

    .auth-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 1.2rem;
    }
}

/* Security Features Styling */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}
