@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-purple: #9C2A70;
    --primary-purple-hover: #83205D;
    --secondary-green: #5D6B2C;
    --secondary-green-hover: #4E5A24;
    --accent-purple: #F5EAF2;
    --accent-green: #F0F4E8;
    --text-dark: #2A2D2E;
    --text-muted: #6F7273;
    --bg-light: #F8F9FA;
    --bg-card: #FFFFFF;
    --border-color: #E2E8F0;
    --border-focus: #9C2A70;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 8px 24px rgba(156, 42, 112, 0.06);
    --shadow-lg: 0 16px 40px rgba(156, 42, 112, 0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: radial-gradient(circle at 10% 20%, rgba(245, 234, 242, 0.8) 0%, rgba(255, 255, 255, 1) 90%);
}

/* Container */
.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Card */
.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(156, 42, 112, 0.08);
    overflow: hidden;
    transition: var(--transition);
    width: 100%;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(156, 42, 112, 0.12);
}

/* Header */
.card-header {
    padding: 35px 30px 25px 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    margin-bottom: 20px;
    width: 100%;
    max-width: 250px;
    height: auto;
    display: flex;
    justify-content: center;
}

.logo-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Form Body */
.card-body {
    padding: 30px;
}

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

.form-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--secondary-green);
    margin-bottom: 15px;
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
    margin-left: 10px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.form-control {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-control:focus {
    border-color: var(--border-focus);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(156, 42, 112, 0.12);
}

.form-control:focus + .input-icon {
    color: var(--primary-purple);
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary-purple);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(156, 42, 112, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-purple-hover);
    box-shadow: 0 6px 20px rgba(156, 42, 112, 0.4);
    transform: translateY(-1px);
}

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

.btn-success {
    background-color: var(--secondary-green);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(93, 107, 44, 0.3);
}

.btn-success:hover {
    background-color: var(--secondary-green-hover);
    box-shadow: 0 6px 20px rgba(93, 107, 44, 0.4);
    transform: translateY(-1px);
}

.btn-success:active {
    transform: translateY(1px);
}

/* Alerts / States */
.status-card {
    text-align: center;
    padding: 40px 30px;
}

.status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.status-icon-success {
    background-color: var(--accent-green);
    color: var(--secondary-green);
}

.status-icon-error {
    background-color: #FDF2F2;
    color: #DE3B3B;
}

.status-icon-warning {
    background-color: var(--accent-purple);
    color: var(--primary-purple);
}

.status-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.status-title-success {
    color: var(--secondary-green);
}

.status-title-error {
    color: #DE3B3B;
}

.status-title-warning {
    color: var(--primary-purple);
}

.status-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Detail List (for validar.php) */
.detail-box {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 30px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-row:first-child {
    padding-top: 0;
}

.detail-label {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-val {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    text-align: right;
    max-width: 60%;
}

/* Animation */
@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }
    .card-header {
        padding: 25px 20px 20px 20px;
    }
    .card-body {
        padding: 20px;
    }
    .status-card {
        padding: 30px 20px;
    }
}
