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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #E8F5F5 0%, #D4E9E9 100%);
    min-height: 100vh;
    padding: 20px;
}

.header-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(135deg, #E8F5F5 0%, #C8E0E0 100%);
    overflow: hidden;
    z-index: 0;
}

.phone-icon {
    position: absolute;
    width: 80px;
    height: 140px;
    border: 3px solid #F4B942;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.3);
}

.phone-icon::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 25px;
    border: 3px solid #F4B942;
    border-radius: 8px;
    background: transparent;
}

.phone-icon .dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.phone-icon .dot {
    width: 12px;
    height: 12px;
    border: 2px solid #F4B942;
    border-radius: 50%;
}

.phone-1 {
    top: 20px;
    left: 8%;
    transform: rotate(-15deg);
}

.phone-2 {
    top: 10px;
    right: 8%;
    transform: rotate(15deg);
}

.decorative-circles {
    position: absolute;
    display: flex;
    gap: 12px;
}

.decorative-circles .circle {
    width: 35px;
    height: 35px;
    border: 3px solid #F4B942;
    border-radius: 50%;
}

.circles-left {
    top: 80px;
    left: 5%;
}

.circles-right {
    top: 40px;
    right: 5%;
}

.plus-icon {
    position: absolute;
    color: #17A8A0;
    font-size: 30px;
    font-weight: 300;
}

.plus-1 {
    top: 30px;
    left: 25%;
}

.plus-2 {
    top: 100px;
    right: 25%;
}

.container {
    max-width: 480px;
    margin: 60px auto 0;
    position: relative;
    z-index: 1;
}

.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-header {
    background: white;
    padding: 30px 30px 20px;
    text-align: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #17A8A0 0%, #149A92 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(23, 168, 160, 0.3);
}

.logo-icon::before {
    content: '';
    width: 35px;
    height: 25px;
    border: 3px solid white;
    border-radius: 4px;
    border-bottom-width: 5px;
}

.logo-text {
    font-size: 16px;
    color: #2D3748;
    font-weight: 500;
    margin-top: 5px;
}

.subtitle {
    font-size: 13px;
    color: #718096;
    margin-top: 8px;
}

.card-body {
    padding: 25px 30px 35px;
}

.transaction-info {
    margin-bottom: 30px;
}

.transaction-title {
    font-size: 14px;
    color: #4A5568;
    margin-bottom: 8px;
}

.transaction-amount {
    font-size: 36px;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 5px;
}

.transaction-currency {
    font-size: 15px;
    color: #718096;
    font-weight: 500;
}

.transaction-date {
    font-size: 13px;
    color: #A0AEC0;
    margin-top: 8px;
}

.form-section {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: #4A5568;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 15px;
    color: #2D3748;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background-color: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: #17A8A0;
    box-shadow: 0 0 0 3px rgba(23, 168, 160, 0.1);
}

.form-input::placeholder {
    color: #CBD5E0;
}

/* Estilos específicos para select */
select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234A5568' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 45px;
    cursor: pointer;
}

select.form-input:disabled {
    background-color: #F7FAFC;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Arreglar estilos en Safari/MacOS */
select.form-input::-ms-expand {
    display: none;
}

select.form-input option {
    padding: 10px;
    background-color: white;
    color: #2D3748;
}

.phone-group {
    display: flex;
    gap: 10px;
}

.country-code {
    width: 120px;
    padding: 14px 12px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 15px;
    color: #2D3748;
    background-color: white;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234A5568' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
    padding-right: 35px;
}

.country-code:focus {
    outline: none;
    border-color: #17A8A0;
    box-shadow: 0 0 0 3px rgba(23, 168, 160, 0.1);
}

.country-code:disabled {
    background-color: #F7FAFC;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Arreglar estilos en Safari/MacOS */
.country-code::-ms-expand {
    display: none;
}

.flag-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 18px;
}

.phone-input {
    flex: 1;
}

.card-section-title {
    font-size: 14px;
    color: #4A5568;
    margin-bottom: 15px;
    font-weight: 600;
}

.encrypted-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #17A8A0;
    margin-bottom: 15px;
}

.encrypted-badge::before {
    content: '🔒';
    font-size: 14px;
}

.card-logos {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 15px;
}

.card-logo {
    width: 40px;
    height: 26px;
    background: #F7FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #4A5568;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.cvv-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #E2E8F0;
    border-radius: 50%;
    font-size: 12px;
    color: #718096;
    margin-left: 6px;
    cursor: help;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #E2E8F0;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: #17A8A0;
    border-bottom-color: #17A8A0;
}

.auth-tab:hover {
    color: #17A8A0;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.forgot-password {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 15px;
}

.forgot-link {
    font-size: 13px;
    color: #17A8A0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #149A92;
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #17A8A0 0%, #149A92 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(23, 168, 160, 0.3);
    margin-top: 30px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 168, 160, 0.4);
}

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

@media (max-width: 500px) {
    .container {
        margin-top: 40px;
    }

    .card-body {
        padding: 20px 20px 30px;
    }

    .transaction-amount {
        font-size: 32px;
    }

    .phone-1,
    .phone-2 {
        width: 60px;
        height: 100px;
    }

    .decorative-circles .circle {
        width: 25px;
        height: 25px;
    }
}

/* Estilos para la pantalla de resumen */
.summary-title {
    font-size: 18px;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 25px;
}

.summary-section {
    margin-bottom: 20px;
}

.section-label {
    font-size: 13px;
    color: #718096;
    margin-bottom: 12px;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #F7FAFC;
    border-radius: 12px;
}

.account-icon {
    width: 48px;
    height: 48px;
    background: #CBD5E0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4A5568;
}

.account-details {
    flex: 1;
}

.account-name {
    font-size: 15px;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 4px;
}

.account-number {
    font-size: 13px;
    color: #718096;
}

.recipient-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #F0FDF4;
    border-radius: 12px;
}

.recipient-avatar {
    width: 48px;
    height: 48px;
    background: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.recipient-details {
    flex: 1;
}

.recipient-name {
    font-size: 15px;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 4px;
}

.recipient-phone {
    font-size: 13px;
    color: #718096;
}

.summary-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.summary-label {
    font-size: 14px;
    color: #4A5568;
}

.summary-value {
    font-size: 14px;
    font-weight: 600;
    color: #2D3748;
}

.back-btn {
    width: 100%;
    padding: 16px;
    background: white;
    color: #17A8A0;
    border: 2px solid #17A8A0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.back-btn:hover {
    background: #F0FDFA;
}

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

/* Estilos para pantalla de error */
.error-container {
    text-align: center;
    padding: 40px 20px;
}

.error-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.error-title {
    font-size: 24px;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 12px;
}

.error-message {
    font-size: 16px;
    color: #4A5568;
    margin-bottom: 8px;
    line-height: 1.5;
}

.error-submessage {
    font-size: 14px;
    color: #718096;
    line-height: 1.5;
}

.label-hint {
    font-size: 12px;
    color: #718096;
    font-weight: 400;
    margin-left: 4px;
}