body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans TC", sans-serif;
    background: #e9eef6;
    min-height: 100vh;
    color: #17365d;
}

.ocean-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.ocean-auth-card {
    width: 100%;
    max-width: 760px;
    background: #f7f8fa;
    border: 1px solid #cfd7e3;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(102, 124, 160, 0.18);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.ocean-auth-home {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f4f4f4;
    border: 1px solid #d8dde6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.2s ease;
    z-index: 10;
}

.ocean-auth-home:hover {
    background: #eaeef4;
}

.ocean-auth-home img {
    width: 20px;
    height: 20px;
    display: block;
}

.ocean-auth-header {
    text-align: center;
    padding: 48px 32px 32px 32px;
    margin-bottom: 0;
    background: linear-gradient(180deg, #d9e0ee 0%, #f2f4f8 100%);
    border-bottom: 1px solid #cfd7e3;
}

.ocean-auth-logo-wrap {
    margin-bottom: 18px;
}

.ocean-auth-logo {
    width: 120px;
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.ocean-auth-title {
    margin: 0 0 12px 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #173b6b;
}

.ocean-auth-subtitle {
    margin: 0 auto;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.8;
    color: #5b7393;
}

.ocean-auth-alert {
    margin: 24px 32px 0 32px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.7;
}

.ocean-auth-alert-error {
    background: #fff1f1;
    border: 1px solid #f0c7c7;
    color: #9f3f3f;
}

.ocean-auth-alert-success {
    background: #edf9f1;
    border: 1px solid #bfe3c9;
    color: #2f6d46;
}

.ocean-auth-error-list {
    margin: 8px 0 0 18px;
    padding: 0;
}

.ocean-auth-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 20px;
    padding: 32px;
}

.ocean-auth-field {
    display: flex;
    flex-direction: column;
}

.ocean-auth-field-full {
    grid-column: 1 / -1;
}

.ocean-auth-label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #173b6b;
}

.ocean-auth-required {
    color: #d45555;
    margin-left: 4px;
    font-weight: 700;
}

.ocean-auth-input,
.ocean-auth-textarea,
.ocean-auth-file {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #c8d1dd;
    background: #ffffff;
    color: #17365d;
    border-radius: 12px;
    padding: 14px 14px;
    font-size: 15px;
    outline: none;
    transition: 0.2s ease;
}

.ocean-auth-input:focus,
.ocean-auth-textarea:focus,
.ocean-auth-file:focus {
    border-color: #6a93d4;
    box-shadow: 0 0 0 3px rgba(106, 147, 212, 0.16);
}

.ocean-auth-textarea {
    min-height: 120px;
    resize: vertical;
}

.ocean-auth-help {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.6;
    color: #6c7f99;
}

.ocean-auth-error-text {
    margin-top: 8px;
    font-size: 13px;
    color: #c94b4b;
}

.ocean-auth-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.ocean-auth-btn {
    min-width: 220px;
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.ocean-auth-btn-primary {
    background: linear-gradient(180deg, #1f3d6b 0%, #17345c 100%);
    color: #ffffff;
}

.ocean-auth-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(31, 61, 107, 0.20);
}

.ocean-auth-link-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #5b7393;
}

.ocean-auth-link {
    color: #173b6b;
    text-decoration: none;
}

.ocean-auth-link:hover {
    text-decoration: underline;
}

/* Cropper圖片上傳裁切 */
/* Cropper modal overlay */
.ocean-crop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Cropper modal content */
.ocean-crop-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 520px;
    box-sizing: border-box;
}

/* Cropper image container */
.ocean-crop-image-wrap {
    width: 100%;
    max-height: 60vh;
    overflow: hidden;
}

/* Cropper image */
.ocean-crop-image-wrap img {
    max-width: 100%;
    display: block;
}

/* Cropper buttons */
.ocean-crop-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ocean-crop-actions button {
    min-width: 140px;
    height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Confirm Crop button */
#crop_confirm {
    border: 1px solid #17345c;
    background: linear-gradient(180deg, #1f3d6b 0%, #17345c 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(31, 61, 107, 0.18);
}

#crop_confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(31, 61, 107, 0.24);
}

/* Cancel button */
#crop_cancel {
    border: 1px solid #c8d1dd;
    background: #f7f8fa;
    color: #173b6b;
    box-shadow: 0 4px 12px rgba(102, 124, 160, 0.08);
}

#crop_cancel:hover {
    background: #eef2f7;
    border-color: #b8c4d4;
}

/* Focus style */
#crop_confirm:focus,
#crop_cancel:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 147, 212, 0.18);
}

@media (max-width: 768px) {
    .ocean-crop-actions {
        gap: 10px;
    }

    .ocean-crop-actions button {
        min-width: 120px;
        height: 42px;
        font-size: 14px;
        border-radius: 10px;
    }
}

@media (max-width: 768px) {
    .ocean-auth-card {
        max-width: 100%;
    }

    .ocean-auth-header {
        padding: 42px 20px 28px 20px;
    }

    .ocean-auth-form {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }

    .ocean-auth-alert {
        margin: 20px 20px 0 20px;
    }

    .ocean-auth-title {
        font-size: 28px;
    }
}