/**
 * HC Login Pro - 알림/토스트 스타일 (Joyn 통합)
 * 
 * File: notices.css
 * Version: 3.2.0
 */

/* ========================================
   기본 알림 스타일
   ======================================== */
.hc-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--hc-space-3);
    padding: var(--hc-space-4);
    border-radius: var(--hc-radius-lg);
    font-size: var(--hc-text-sm);
    font-weight: var(--hc-font-medium);
    line-height: 1.5;
    margin-bottom: var(--hc-space-4);
    border: 1px solid transparent;
}

.hc-notice p {
    margin: 0;
    flex: 1;
}

/* 인증 메일 안내: 회원가입창 밖 상단, 문장 가로 배치 */
.hc-register-verify-notice-outer {
    margin-bottom: var(--hc-space-6);
    width: 100%;
}
.hc-register-verify-notice {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0;
    display: block;
    width: 100%;
}
.hc-register-verify-notice p {
    display: block;
    margin: 0 0 0.5em 0;
    line-height: 1.6;
    width: 100%;
    white-space: normal;
    word-break: normal;
}
.hc-register-verify-notice p:last-child {
    margin-bottom: 0;
}

.hc-notice i {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ========================================
   성공 알림
   ======================================== */
.hc-notice-success {
    background: var(--hc-success-light);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.2);
}

.hc-notice-success i {
    color: var(--hc-success);
}

/* ========================================
   에러 알림
   ======================================== */
.hc-notice-error {
    background: var(--hc-error-light);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.2);
}

.hc-notice-error i {
    color: var(--hc-error);
}

/* ========================================
   경고 알림
   ======================================== */
.hc-notice-warning {
    background: var(--hc-warning-light);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.2);
}

.hc-notice-warning i {
    color: var(--hc-warning);
}

/* ========================================
   정보 알림
   ======================================== */
.hc-notice-info {
    background: var(--hc-info-light);
    color: #1e40af;
    border-color: rgba(59, 130, 246, 0.2);
}

.hc-notice-info i {
    color: var(--hc-info);
}

/* ========================================
   토스트 메시지 (플로팅)
   ======================================== */
.hc-toast {
    position: fixed;
    bottom: var(--hc-space-6);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: var(--hc-z-toast);
    padding: var(--hc-space-4) var(--hc-space-6);
    background: var(--hc-gray-800);
    color: var(--hc-text-inverse);
    border-radius: var(--hc-radius-lg);
    box-shadow: var(--hc-shadow-xl);
    font-size: var(--hc-text-sm);
    font-weight: var(--hc-font-medium);
    display: flex;
    align-items: center;
    gap: var(--hc-space-3);
    opacity: 0;
    visibility: hidden;
    transition: all var(--hc-transition);
    max-width: calc(100vw - var(--hc-space-8));
}

.hc-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.hc-toast-success {
    background: var(--hc-success);
}

.hc-toast-error {
    background: var(--hc-error);
}

.hc-toast-warning {
    background: var(--hc-warning);
    color: #000000;
}

.hc-toast-info {
    background: var(--hc-info);
}

/* ========================================
   인라인 메시지
   ======================================== */
.hc-message {
    padding: var(--hc-space-3) var(--hc-space-4);
    border-radius: var(--hc-radius-md);
    font-size: var(--hc-text-sm);
    display: flex;
    align-items: center;
    gap: var(--hc-space-2);
}

.hc-message-success {
    background: var(--hc-success-light);
    color: #065f46;
}

.hc-message-error {
    background: var(--hc-error-light);
    color: #991b1b;
}

/* ========================================
   닫기 버튼 있는 알림
   ======================================== */
.hc-notice-dismissible {
    position: relative;
    padding-right: calc(var(--hc-space-4) + 32px);
}

.hc-notice-dismiss {
    position: absolute;
    top: 50%;
    right: var(--hc-space-3);
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--hc-radius-sm);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--hc-transition-fast);
}

.hc-notice-dismiss:hover {
    opacity: 1;
}

/* ========================================
   모바일 반응형
   ======================================== */
@media (max-width: 640px) {
    .hc-toast {
        bottom: var(--hc-space-4);
        left: var(--hc-space-4);
        right: var(--hc-space-4);
        transform: translateX(0) translateY(100px);
    }
    
    .hc-toast.show {
        transform: translateX(0) translateY(0);
    }
}

/* ========================================
   이미 로그인 상태 (폼과 동일 카드/템플릿 스타일)
   ======================================== */
.hc-already-logged-in {
    max-width: var(--hc-form-max-width, 420px);
    margin-left: auto;
    margin-right: auto;
}

.hc-already-logged-in .hc-form-title {
    margin-bottom: var(--hc-space-3);
}

.hc-already-logged-in-greeting {
    color: var(--hc-text-secondary, #64748b);
    font-size: var(--hc-text-base);
    line-height: 1.5;
    margin: 0 0 var(--hc-space-6);
}

.hc-already-logged-in-actions {
    display: flex;
    flex-direction: column;
    gap: var(--hc-space-3);
}

.hc-already-logged-in-actions .hc-btn-full {
    width: 100%;
    justify-content: center;
}
